<link type="text/css" rel="stylesheet" href="{url:#css/ucenter.css}" />
{echo:JS::import('form');}
{echo:JS::import('date');}
<div class="container clearfix">
	{widget:name=sub_navs action=ucsidebar sidebar=$sidebar act=$actionId}
	<div class="uc-content clearfix">
        <h1 class="title"><span>修改密码：</span></h1>
        {if:isset($msg)}
        <div class="message_{$msg[0]} ie6png">{$msg[1]}</div>
        {elseif:isset($validator)}
        <div class="message_warning ie6png">{$validator['msg']}</div>
        {/if}
        <div class="mt10 tab">
            <ul class="tab-head">
                <li>登陆密码<i></i></li>
                <li>二级密码<i></i></li>
            </ul>
            <div class="tab-body">
                <!-- 一级密码 -->
                <div>
                    <form id="info-form" class="simple" action="{url:/ucenter/password_save}" method="post">
                        <input type="hidden" name="lx" value="1">
                        <table class="form">
                         <tr>
                            <td class="label">原登陆密码：</td><td><input type="password" pattern="required" name="oldpassword" alt="原账户密码"> <label></label></td>
                        </tr>
                        <tr>
                            <td class="label">新登陆密码：</td><td><input type="password" pattern="required" name="password" bind="repassword" minlen="6" maxlen="20" value="" alt="密码长度6-20个字符"> <label></label></td>
                        </tr>
                        <tr>
                            <td class="label">确认登陆密码：</td><td><input type="password" pattern="required" name="repassword" bind="password" minlen="6" maxlen="20" value="" alt="密码长度6-20个字符"> <label></label></td>
                        </tr>
                        <tr>
                            <td colspan="2" class="tc"><input type="submit" class="btn" value="保存" ></td>
                        </tr>
                        </table>
                        {token:}
                    </form>
                </div>
                <!-- 二级密码 -->
                <div>
                    <form id="info-form" class="simple" action="{url:/ucenter/password_save}" method="post">
                        <input type="hidden" name="lx" value="2">
                        <table class="form">
                         <tr>
                            <td class="label">原二级密码：</td><td><input type="password" pattern="required" name="oldpassword" alt="原账户密码"> <label></label></td>
                        </tr>
                        <tr>
                            <td class="label">新二级密码：</td><td><input type="password" pattern="required" name="password" bind="repassword" minlen="6" maxlen="20" value="" alt="密码长度6-20个字符"> <label></label></td>
                        </tr>
                        <tr>
                            <td class="label">确认二级密码：</td><td><input type="password" pattern="required" name="repassword" bind="password" minlen="6" maxlen="20" value="" alt="密码长度6-20个字符"> <label></label></td>
                        </tr>
                        <tr>
                            <td colspan="2" class="tc"><input type="submit" class="btn" value="保存" ></td>
                        </tr>
                        </table>
                        {token:}
                    </form>
                </div>
            </div>
    </div>
</div>
</div>

